import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: '',
      order: 1,
      title: '任务管理',
      tabGroup: 'task'
    },
    name: 'Taskmanagement',
    path: '/taskmanagement',
    children: [
      {
        name: 'Routemanagement',
        path: '/routemanagement',
        component: () =>
          import('#/views/taskmanagement/routemanagement/index.vue'),
        meta: {
          icon: '12.png',
          title: '航线管理',
          tabGroup: 'task'
        },
      },
      {
        name: 'RouteDetail',
        path: '/routeDetail',
        component: () =>
          import('#/views/taskmanagement/routemanagement/detail.vue'),
        meta: {
          icon: '',
          title: '航线管理详情',
          hideInMenu: true,
          hideInTab:true,
          tabGroup: 'task'
        },
      },
      {
        name: 'RouteDetailFace',
        path: '/routeDetailFace',
        component: () =>
          import('#/views/taskmanagement/routemanagement/detailface.vue'),
        meta: {
          icon: '',
          title: '航线管理详情',
          hideInMenu: true,
          hideInTab:true,
          tabGroup: 'task'
        },
      },
      {
        name: 'Patrolscheme',
        path: '/patrolscheme',
        component: () =>
          import('#/views/taskmanagement/patrolscheme/index.vue'),
        meta: {
          icon: '13.png',
          title: '巡检计划',
          tabGroup: 'task'
        },
      },
      {
        name: 'PatrolDetail',
        path: '/patrolDetail',
        component: () =>
          import('#/views/taskmanagement/patrolscheme/detail.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '巡检计划详情',
          hideInMenu: true,
          hideInTab:true,
          tabGroup: 'task',
          activePath: '/patrolscheme'
        },
      },
      {
        name: 'Inspectiontask',
        path: '/inspectiontask',
        component: () =>
          import('#/views/taskmanagement/inspectiontask/index.vue'),
        meta: {
          icon: '14.png',
          title: '巡检任务',
          tabGroup: 'task'
        },
      },
      {
        name: 'InspectionDetail',
        path: '/inspectionDetail',
        component: () =>
          import('#/views/taskmanagement/inspectiontask/detail.vue'),
        meta: {
          icon: 'carbon:workspace',
          title: '巡检任务详情',
          hideInMenu: true,
          hideInTab:true,
          tabGroup: 'task',
          activePath: '/inspectiontask'
        },
      },
      // {
      //   name: 'Policetask',
      //   path: '/policetask',
      //   component: () => import('#/views/taskmanagement/policetask/index.vue'),
      //   meta: {
      //     icon: '15.png',
      //     title: '警情任务',
      //     tabGroup: 'task'
      //   },
      // },
      // {
      //   name: 'PoliceDetail',
      //   path: '/policeDetail',
      //   component: () => import('#/views/taskmanagement/policetask/detail.vue'),
      //   meta: {
      //     icon: 'carbon:workspace',
      //     title: '警情任务详情',
      //     hideInMenu: true,
      //     hideInTab:true,
      //     tabGroup: 'task',
      //     activePath: '/policetask'
      //   },
      // },
      // {
      //   name: 'PoliceAdd',
      //   path: '/policeAdd',
      //   component: () =>
      //     import('#/views/taskmanagement/policetask/addpolice.vue'),
      //   meta: {
      //     icon: 'carbon:workspace',
      //     title: '警情任务新增',
      //     hideInMenu: true,
      //     hideInTab:true,
      //     tabGroup: 'task',
      //     activePath: '/policetask'
      //   },
      // },
      // {
      //   name: 'Alarmmanagement',
      //   path: '/alarmmanagement',
      //   component: () =>
      //     import('#/views/taskmanagement/alarmmanagement/index.vue'),
      //   meta: {
      //     icon: '16.png',
      //     title: '告警管理',
      //     tabGroup: 'task'
      //   },
      // },
      // {
      //   name: 'AlarmDetail',
      //   path: '/alarmDetail',
      //   component: () =>
      //     import('#/views/taskmanagement/alarmmanagement/detail.vue'),
      //   meta: {
      //     icon: 'carbon:workspace',
      //     title: '告警管理详情',
      //     hideInMenu: true,
      //     hideInTab:true,
      //     tabGroup: 'task',
      //     activePath: '/alarmmanagement'
      //   },
      // },
    ],
  },
];

export default routes;
